package com.gzy.cbrsystem.shimian.action;

import java.util.List;

import com.gzy.cbrsystem.shimian.dao.ShimianBingzhen;
import com.gzy.cbrsystem.shimian.service.CaseReasoning;
import com.opensymphony.xwork2.ActionSupport;

public class FindShimianBingzhenById extends ActionSupport {
	
	protected String fanliId;
	protected CaseReasoning caseReasoning;
	
	protected ShimianBingzhen shimianBingzhen;
	
	public String getFanliId()
	{
		return this.fanliId;
	}
	public void setFanliId(String fanliId)
	{
		this.fanliId=fanliId;
	}
	public void setShimianBingzhen(ShimianBingzhen shimianBingzhen) {
		this.shimianBingzhen = shimianBingzhen;
	}

	public ShimianBingzhen getShimianBingzhen() {
			return this.shimianBingzhen;
	}
	public void setCaseReasoning(CaseReasoning caseReasoning) {
		this.caseReasoning = caseReasoning;
	}

	public CaseReasoning getCaseReasoning() {
		return this.caseReasoning;
	}
	public String execute() throws Exception {
		ShimianBingzhen result=this.caseReasoning.findBingzhenByID(fanliId);
		this.setShimianBingzhen(result);
		return SUCCESS;
	}
}
